home *** CD-ROM | disk | FTP | other *** search
/ Borland JBuilder 6 / jbuilder6.iso / Documents / JAVA Programming / examples / 16 / FlowLayoutDemo.java < prev    next >
Encoding:
Java Source  |  2000-09-08  |  584 b   |  19 lines

  1. /* <applet code = "FlowLayoutDemo" width=200 height=100>
  2.    </applet>
  3. */ 
  4. import java.awt.*;
  5. import java.applet.*;
  6. import java.util.*;
  7. public class FlowLayoutDemo extends Applet {
  8. public void init() {
  9. setLayout(new FlowLayout(FlowLayout.RIGHT, 10, 3));
  10. int width = Integer.parseInt(getParameter("width"));
  11. int height = Integer.parseInt(getParameter("height"));
  12. String val = "Data is not information " +
  13.              "is not knowledge is not wisdom.";
  14. StringTokenizer st = new StringTokenizer(val);
  15. while (st.hasMoreTokens()) {
  16. add(new Button(st.nextToken()));
  17. }
  18. } }
  19.